<?php
/**
 * User:于小涛
 * Date:2020/3/18
 * Time:9:51
 */
namespace app\api\validate\promotion;

use think\Validate;

class PromotionRecord extends Validate{
    protected $rule=[
        'date'=>'date',
        'channel_ids'=>'require',
        'nums'=>'require',
        'chuangye_admin_ids'=>'require',
        'tuiguang_admin_ids'=>'require',
    ];

    protected $message=[
        'account'=>'日期不能够为空',
    ];

    protected $scene = [
        'addPromotionRecord'  =>  ['date','channel_ids','nums','chuangye_admin_ids'],
        'addPromotionValidRecord'  =>  ['date'],
    ];
}